(function(){
	if(!window.cell) window.cell={};
	if(!window.cell.restart) window.cell.restart={};
	if(!window.$restart) window.$restart = cell.restart = function() {
		const CI=Components.interfaces.nsIAppStartup;
		return Components.classes["@mozilla.org/toolkit/app-startup;1"].getService(CI).quit(CI.eRestart | CI.eAttemptQuit);
	}
})();